<?php //echo par($model->attributes); ?>
<?php if(!is_null($model)) : ?>
<div style="overflow:auto">
<?php $this->widget('zii.widgets.CDetailView', array(
    'data'=>$model,
    'attributes'=>array(
        array(
            'header'=>'',
            'type'=>'raw',
            'value'=>CHtml::link(ICON_VIEW,array('/project/view','id'=>$model->id),array('title'=>Yii::t('site','View Project {recordName}',array('{recordName}'=>$model->recordName))))
        ),
        'name',
        'description',
        array(
            'label'=>Yii::t('site','Milestones'),
            'type'=>'raw',
            'value'=>CHtml::link(count($model->milestones),array('/milestone/admin','Milestone[projectId]'=>$model->id))
                .CHtml::link(ICON_NEW,array('/milestone/create','projectId'=>$model->id)),
        ),
        array(
            'label'=>Yii::t('site','Issues'),
            'type'=>'raw',
            'value'=>CHtml::link(count($model->issues),array('/issue/admin','Issue[projectId]'=>$model->id,'clearMilestoneId'=>1))
                .CHtml::link(ICON_NEW,array('/issue/create','projectId'=>$model->id)),
        ),
    ),
)); ?>
</div>
<?php endif; ?>
